import React, { Component, PropTypes } from 'react';
import { Row, Col, Card, Table, Icon, List, Button } from 'antd'
import "./detail.scss"


const dataSource1 = [{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    contribution: '99999999',
    paid:'890000',
  },{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    contribution: '99999999',
    paid:'890000',
  },{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    contribution: '99999999',
    paid:'890000',
  },{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    contribution: '99999999',
    paid:'890000',
  }];
  
  const columns1 = [{
    title: '名称',
    dataIndex: 'name',
    key: 'name',
  }, {
    title: '投资时间',
    dataIndex: 'startTime',
    key: 'startTime',
  }, {
    title: '认缴金额',
    dataIndex: 'contribution',
    key: 'contribution',
  },{
    title: '实缴金额',
    dataIndex: 'paid',
    key: 'paid',
  },
];

const dataSource2 = [{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    quitTime: '2016-01-01',
    income:'890000',
  },{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    quitTime: '2016-01-01',
    income:'890000',
  },{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    quitTime: '2016-01-01',
    income:'890000',
  },{
    key: '1',
    name: '经纬成长',
    startTime: '2016-01-01',
    quitTime: '2016-01-01',
    income:'890000',
  }];
  
  const columns2 = [{
    title: '名称',
    dataIndex: 'name',
    key: 'name',
  }, {
    title: '投资时间',
    dataIndex: 'startTime',
    key: 'startTime',
  }, {
    title: '退出时间',
    dataIndex: 'quitTime',
    key: 'quitTime',
  },{
    title: '收益回报',
    dataIndex: 'income',
    key: 'income',
  },
];

export default class Project extends Component {
    constructor() {
        super()
    }
    render() {
        return (
           <Row>
             
              <Card title="在投项目">
              <Table dataSource={dataSource1} columns={columns1} />
              </Card>
              <Card title="退出项目">
              <Table dataSource={dataSource2} columns={columns2} />
              </Card>
            </Row>
        )
    }
}